package mr.fresh.mapper.manage;

import java.util.List;

import mr.fresh.entity.manange.FreshPic;
import mr.fresh.entity.manange.FreshPicExample;
import org.apache.ibatis.annotations.Param;

public interface FreshPicMapper {
    long countByExample(FreshPicExample example);

    int deleteByExample(FreshPicExample example);

    int deleteByPrimaryKey(Long picId);

    int insert(FreshPic record);

    int insertSelective(FreshPic record);

    List<FreshPic> selectByExample(FreshPicExample example);

    FreshPic selectByPrimaryKey(Long picId);

    int updateByExampleSelective(@Param("record") FreshPic record, @Param("example") FreshPicExample example);

    int updateByExample(@Param("record") FreshPic record, @Param("example") FreshPicExample example);

    int updateByPrimaryKeySelective(FreshPic record);

    int updateByPrimaryKey(FreshPic record);

    /**
     * @Description: 根据id查询url
     * @Param: [id]
     * @return: java.lang.String
     * @Author: Mr.jl
     * @Date: 2019/6/10
     */
    List<FreshPic> selectByGoodId(Long id);

    /**
     * @Description: 根据goodId删除数据
     * @Param: [GoodId]
     * @return: int
     * @Author: Mr.jl
     * @Date: 2019/6/13
     */
    int deleteByGoodId(Long goodsId);
}